package com.hugong.yxx.wksp.common.utils;

import com.hugong.yxx.wksp.modules.controller.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.TimerTask;

@Component
public class TimTask extends TimerTask {

    static Logger log = LoggerFactory.getLogger(TimTask.class);

    @Override
    public void run() {
        BaseController.getSession().removeAttribute("codeBean");
        log.info("codeBean删除成功");
        this.cancel();
    }
}
